package com.csnf.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Update;

@Mapper
public interface BookMapper {

    //减少库存
    @Update("update book set stock = stock - 1 where id=#{bookId}")
    public void reduceStock(Integer bookId);

}
